<!--
  @author heguanghua
  @since 2019/06/12 11:57
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss2"/>
<style>
    .operator-panel .layui-btn{
        width: 100px;
    }
</style>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        渠道管理> 营销业务管理>
        <a lay-href="/channel/mark/list.action" lay-text="渠道标示管理" th:text="标示管理">标示管理</a>
        >
        <a th:lay-href="|/channel/mark/group/list.action?markId=${mark.markId}|" th:text="${mark.name}"></a>
        >
        <a th:lay-href="|/channel/mark/group/assChannels/list.action?markId=${mark.markId}|">关联渠道管理</a>
        > 关联渠道
    </blockquote>

    <div class="layui-card">

        <form method="POST" class="layui-form" th:action="|/channel/mark/group/assChannels/list.action?markId=${mark.markId}|">
            <div th:replace="channel/mark/group/sub/_query::query"></div>
        </form>

        <div class="layui-card-body">

            <div th:replace="channel/mark/group/sub/_table::table"></div>

            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group" th:if="${#authPermit.checkPermit('/channel/mark/modify/group/assChannels/update.action')}">
                        <button class="layui-btn layui-btn-sm" lay-event="associate">关联渠道</button>
                    </div>
                </div>
            </script>
        </div>
    </div>

</div>
</body>
</html>

<style type="text/css">
    .hide-channel-color {
        color: #999999;
    }

    .click-btn-color {
        background-color: #999999;
    }
</style>


<script type="text/javascript" th:inline="javascript">

    var json = {
        totalCount: [[${query.totalCount}]],
        pageSize: [[${query.pageSize}]],
        pageIndex: [[${query.pageIndex}]],
        plats: [[${plats}]],
        oneDepts: [[${oneDepts}]],
        twoDepts: [[${twoDepts}]],
        obj: [[${query}]],
        faultTariffs: [[${faultTariffs}]],
        hasViewInPrice: [[${#authPermit.checkPermit('/channel/inPriceList.action')}]],
        hasViewOutPrice: [[${#authPermit.checkPermit('/channel/outPriceList.action')}]],
        hasViewProjectPrice: [[${#authPermit.checkPermit('/channel/projectPriceList.action')}]],
        hasViewSettle: [[${#authPermit.checkPermit('/channel/settle/addEditView.action')}]],
        hasViewEdit: [[${#authPermit.checkPermit('/channel/addEditView.action')}]],
        hasViewConfigInnerName: [[${#authPermit.checkPermit('/channel/configInnerName.action')}]],

        SYS_MCC: [[${SYS_MCC}]],
        query: [[${query}]],
        checkedIds: [[${checkedIds}]],
        showChannelIds: [[${showChannelIds}]],
        mark: [[${mark}]],
        assChannelIds: [[${assChannelIds}]],
    };


    layui.config({
        base: "/static/lay/",
        version: 20211207145623
    }).extend({
        index: "lib/index",
        formSelects: '{/}/static/lay/layui/formSelects-v4',
        channel_mark_group_channel_list: "channel/mark/group/zmn.plat.channel.list",
    }).use(['index', 'channel_mark_group_channel_list']);

</script>
